<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{dede:field name='title'/} - {dede:global name='cfg_webname'/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}">
<meta name="description" content="{dede:field name='description'/}">
<link href="{dede:global name="cfg_cmsurl"/}/book/images/book_style.css" rel="stylesheet" type="text/css" />
<link href="{dede:global name="cfg_cmsurl"/}/book/images/boxy.css" rel="stylesheet" type="text/css" />
<script language='javascript' src='{dede:global name='cfg_cmsurl'/}/include/dedeajax2.js'></script>
<script src="{dede:global name="cfg_cmsurl"/}/book/js/j.js" type="text/javascript"></script>
<script src="{dede:global name="cfg_cmsurl"/}/book/js/stars.js" type="text/javascript"></script>
<script src="{dede:global name="cfg_cmsurl"/}/book/js/jquery.boxy.js" type="text/javascript"></script>
<script language='javascript'>
  $(document).ready(function(){ 
	  $(".boxy").boxy();
  })
function ShowStarInfo(){
  var taget_obj = document.getElementById('_starinfo');
  myajax = new DedeAjax(taget_obj,false,false,'','','');
  myajax.SendGet2("/book/bookstars.php?bid={dede:field name='bid'/}&ajaxtype=info");
  DedeXHTTP = null;
}
function Showrating(){
  var taget_obj = document.getElementById('_rating');
  myajax = new DedeAjax(taget_obj,false,false,'','','');
  myajax.SendGet2("/book/bookstars.php?bid={dede:field name='bid'/}");
  DedeXHTTP = null;
}
function CheckLogin(){
  var taget_obj = document.getElementById('book_welcome');
  myajax = new DedeAjax(taget_obj,false,false,"","","");
  myajax.SendGet2("/book/loginsta.php");
  myajax = null;
}
function checkSubmit(){
	if(document.feedback.msg.value!='') document.feedback.submit();
	else alert("评论内容不能为空！");
}
function postBadGood(ftype,fid)
{
	var taget_obj = document.getElementById(ftype+fid);
	var saveid = GetCookie('badgoodid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==fid && hasid) continue;
			else {
				if(saveids[i]==fid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==10 && hasid) break;
				if(j==9 && !hasid) break;
			}
		}
		if(hasid) { alert('您刚才已表决过了喔！'); return false;}
		else saveid += ','+fid;
		SetCookie('badgoodid',saveid,1);
	}
	else
	{
		SetCookie('badgoodid',fid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:field name='phpurl'/}/bookfeedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
	DedeXHTTP = null;
}
</script>
<link href="../../images/book_style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="CheckLogin()">
<div id="container">
	<!--头部开始-->
    <div id="book_header">
    	<div id="book_top">
        	<div id="book_toplogo">
            </div>
            <div id="book_welcome">您好，请 <span><a href="{dede:global name='cfg_memberurl'/}/login.php">登录</a></span> 或 <span><a href="{dede:global name='cfg_memberurl'/}/index_do.php?fmdo=user&dopost=regnew">注册</a></span>
            </div>
            <div class="clear">
            </div>
        </div>

        <div id="book_topimg">
        	<div id="book_topbg">
        		<div id="book_logo">
            	</div>
            	<div id="book_banner">
            	</div>
            	<div class="clear">
            	</div>
        	</div>
        </div>

        <div id="book_menubg">
        	<div id="book_menu">
            	<div id="book_go">
                </div>
                <ul>
                    <li><a href='{dede:global name='cfg_cmspath'/}/book'>主页</a></li>
        			{dede:catalog}
                    <li><a href="{in:field name='url'}{/in:field}">{in:field name='classname'}{/in:field}</a></li>
        			{/dede:catalog}
        			<li><a href='{dede:global name='cfg_cmspath'/}/member'>会员中心</a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
        </div>

    </div>
	<!--头部结束-->
    <!--中间开始-->
    <div id="main">
   	  <div id="book_main">
        	<div id="book_index">当前位置：<a href="{dede:global name='cfg_cmspath'/}/book">主页</a> > <a href="/book/list.php?id={dede:field name='id'/}">{dede:field name='classname'/}</a> > {dede:field name='bookname'/}
            </div>
            <div id="book_left"><!--左边开始-->
           	  <div class="book_left_main">
               	  <div class="book_left_title">本月热门图书
                  </div>
                    <div class="book_left_main_text">
                    	<ul>
                        	{dede:booklist row='8' titlelen='24' orderby='weekcc'}
							<li><a href='[field:bookurl /]'>[field:bookname /]</a></li>
							{/dede:booklist}
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
              </div>
           	  <div class="book_left_main">
               	  <div class="book_left_title">推荐图书
                  </div>
                    <div class="book_left_main_text">
                    	<ul>
                        	{dede:booklist row='8' titlelen='24' orderby='commend'}
							<li><a href='[field:bookurl /]'>[field:bookname /]</a></li>
							{/dede:booklist}
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
              </div>
           	  <div class="book_left_main">
               	  <div class="book_left_title">总点击排行
                  </div>
                    <div class="book_left_main_text">
                    	<ul>
		  					{dede:booklist row='8' titlelen='24' orderby='click'}
                       		<li><a href='[field:bookurl /]'>[field:bookname /]</a></li>
							{/dede:booklist}
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
              </div>
            </div><!--左边结束-->

          	<div id="book_right"><!--右边开始-->
          	  <div class="book_news"><!--新书上架-->
                	<div class="book_news_title title">
                    	<ul>
                        <li>文章信息：</li>
                        </ul>
                    </div>
                    <div class="book_news_style">
                    	<div class="book_news_style_form1">
                        	<div class="book_news_style_img1"><img src="{dede:field name='litpic' runphp='yes'}@me = (@me =='')? "/images/defaultpic.gif" : @me;{/dede:field}" width="120" height="160" alt="{dede:field name='title' /}"/></div>
                            <div class="book_news_style_text2">
                                <div class="comment">
                                <h1>{dede:field name='bookname'/} </h1>
                            	<h2>作者：{dede:field name='author'/}</h2>
                           	    <h2>浏览量：<script src="{dede:global name="cfg_cmsurl"/}/book/countbook.php?view=yes&aid={dede:field name='id'/}" language="javascript"></script></h2>
                                 <h2>类型：<a href="/book/list.php?id={dede:field name='id'/}">{dede:field name='classname'/}</a></h2>
                                <h2>连载完成：{dede:field name='status'/}</h2>
                                <h2>上架时间：{dede:field name='pubdate' function='GetDateMk(@me)'/}</h2>
                                <div class="star">
                                <span><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field name=id/}&type=book&title={dede:field name='bookname'/}" target="_blank">收藏</a></span>
                                <div class="rtext">评价这本书：</div>
                                 <div style="float:left">
              					   <div id="_rating" style="padding-top: 2px;"></div>
			 					   <script language='javascript' type='text/javascript'>Showrating();</script>
                                </div>
                                 </div>
                                </div>
                                 <div id="_starinfo"></div>
                              <script language='javascript' type='text/javascript'>ShowStarInfo();</script> 
                                
                              <h3>最新章节：{dede:newcontent row='1'/}</h3>
                          </div>
                    	</div>
                      <div class="book_article_title">图书介绍：</div>
                        <div class="msgarea">
                        {dede:field name='body'/}
                        </div>
                        <div class="clear">
                        </div>
                    </div>

                <div class="book_article_listtable">章节列表：
                </div>
                    {dede:chapter}
                <div class="book_article_texttable">
                    	<div class="book_article_texttitle">第{in:field name='chapnum'}{/in:field}章 {in:field name='chaptername'}{/in:field}
                        </div>
                        <div class="book_article_listtext">
                        	<dl id="chapterlist">
                            {in:content}<dd><a href="[field:url/]">第[field:ch/]节 [field:title/]</a></dd>{/in:content}
                            </dl>
                            <div class="clear">
                            </div>
                        </div>
                </div>
                    {/dede:chapter}
                  <!-- comment-->
			<div style="text-align:left; ">	
				<dl class="tbox">
					<dt>
						<strong>最新评论</strong>
						<span class="more"><a href="{dede:field name='phpurl'/}/bookfeedback.php?aid={dede:field.id/}">查看所有评论</a></span>
                  </dt>
					<dd>
						<div class="dede_comment">
						<script language='javascript' type='text/javascript' src="{dede:field name='phpurl'/}/bookfeedback_js.php?aid={dede:field name='id'/}"></script>
						</div><!-- /dede_comment -->
					</dd>
					</dl>
					<dl class="tbox">
						<dt>
							<strong>发表评论</strong>
							<span class="more"><a href="{dede:field name='phpurl'/}/bookfeedback.php?aid={dede:field.id/}">查看所有评论</a></span>
					  </dt>
						<dd>
							<div class="dede_comment_post">
                                <form action="{dede:field name='phpurl'/}/bookfeedback.php" method="post" name="feedback">
                                <input type="hidden" name="action" value="send" />
                                <input type="hidden" name="comtype" value="comments">
                                <input type="hidden" name="aid" value="{dede:field name='id'/}" />
                                <input type="hidden" name="isconfirm" value="yes" />
								<div class="dcmp-title">
									<small>请自觉遵守互联网相关的政策法规，严禁发布色情、暴力、反动的言论。</small>
								</div><!-- /dcmp-title -->
								<div class="dcmp-content">
								  <textarea cols="60" name="msg" rows="5"></textarea>
								</div>
                                <div class="dcmp-stand">
									<strong>评价:</strong>
                                    <p>&nbsp;</p>
                                    <span><input type="radio" name="feedbacktype" checked="1" value="feedback" id="dcmp-stand-neu" /><label for="dcmp-stand-neu"><img src="{dede:global.cfg_templets_skin/}/images/cmt-neu.gif" />中立</label>
                                    <input type="radio" name="feedbacktype" value="good" id="dcmp-stand-good" /><label for="dcmp-stand-good"><img src="{dede:global.cfg_templets_skin/}/images/cmt-good.gif" />好评</label>
                                    <input type="radio" name="feedbacktype" value="bad" id="dcmp-stand-bad" /><label for="dcmp-stand-bad"><img src="{dede:global.cfg_templets_skin/}/images/cmt-bad.gif" />差评</label></span>
								</div><!-- /dcmp-stand --><!-- /dcmp-content -->
								<div class="dcmp-mood">
									<strong>表情:</strong>
									<ul>
                                      <li><input type="radio" name='face' value='6' checked="1" /><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-6.gif" /></li>
                                      <li><input type="radio" name='face' value='4'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-4.gif" /></li>
                                      <li><input type="radio" name='face' value='3'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-3.gif" /></li>
                                      <li><input type="radio" name='face' value='5'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-5.gif" /></li>
                                      <li><input type="radio" name='face' value='2'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-2.gif" /></li>
                                      <li><input type="radio" name='face' value='1'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-1.gif" /></li>
                                      <li><input type="radio" name='face' value='7'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-7.gif" /></li>
									</ul>
								</div><!-- /dcmp-mood -->
								<div class="dcmp-post"><!--未登陆-->
									<div class="dcmp-userinfo" id="_ajax_feedback">
                                        {dede:php}
											if($cfg_mb_open=='Y') {
											echo '用户名:<input type="text" name="username" size="16" class="ipt-txt" />';
											echo '密码:<input name="pwd" type="password" size="16" class="ipt-txt" />';
										}
											{/dede:php}
										验证码:<input type='text' name='validate' size='4' class='ipt-txt' /><img src="{dede:global.cfg_cmsurl /}/include/vdimgck.php" id="validateimg" style="cursor:pointer" onclick="this.src=this.src+'?'" title="点击我更换图片" alt="点击我更换图片" />
                <input type="checkbox" name="notuser" id="dcmp-submit-guest" /><label for="dcmp-submit-guest" />匿名? </label>
							</div>
              							{dede:php}
											if($cfg_mb_open=='Y') {
              								echo '<script language="javascript" type="text/javascript">CheckLogin();</script>';
              							}
										{/dede:php}
									<div class="dcmp-submit">
										<button type="button" onClick='checkSubmit()'>发表评论</button>
									</div>
								</div>
								</form>
						</div><!-- /dede_comment_post -->
					</dd>
				</dl>
		</div><!-- comment -->	      
              </div>
          	</div>
            <div class="clear">
            </div>
      </div>
    </div>
<!--中间结束-->
    <div class="book_footer">
    	Powered by <a href="http://www.dedecms.com/">DedeCms {dede:global name='cfg_version'/}</a> &copy; 2004-2011  <a href="http://www.desdev.cn/">DesDev Inc.</a><br />
    </div>
    <div class="clear">
    </div>

</div>
</body>
</html>
